package net.zjitc.testphone;

/**
 * @Author admin
 * @Date 2019/3/12 14:10
 */
public class Phone {
    private String brand;
    private int price;
    private String date;
    void setBrand(String brand){
        this.brand=brand;
    }
    void setPrice(int price){
        this.price=price;
    }
    void setDate(String date){
        this.date=date;
    }
    String getBrand(){
        return brand;
    }
    String getDate(){
        return date;
    }
    int getPrice(){
        return price;
    }
    void call(){
        System.out.println("打电话");
    }
    void game(){
        System.out.println("玩游戏");
    }
    void blast(){
        System.out.println(brand+"会爆炸");
    }
    void charge(){
        System.out.println("充电中");
    }
    void name(){
        System.out.println(brand+price+date);
    }
}
